package com.example.mallone11.merchant.mapper;
import com.example.mallone11.merchant.params.MerchantRequestParams;
import com.example.mallone11.merchant.pojo.Goods;
import com.example.mallone11.merchant.pojo.Merchant;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MerchantMapper {
//写具体的接口
//商家的注册
    int addMerchant(MerchantRequestParams merchantRequestParams);
//查询商家账号在数据库中是否存在,存在就不能注册,反之就可以
    Merchant findMerchantByName(String mname);
    Merchant login(MerchantRequestParams merchantRequestParams);

    int updateMerchant(Merchant merchant);


    int addGoods(Goods goods);

    List<Goods> findAllGoods();






}
